package java6681.salary;

public class Master6681 extends Employee6681 {
    public Master6681() {
    }

    public Master6681(String name, double salary) {
        super(name, salary);
    }
    public String toString() {
        //员工的基本信息
        return "研究生员工："+"id=" + getId() + ",姓名=" + getName()
                + ",基本工资=" + getSalary() + ",增加工资=" + getIncrease();
    }

    public void raise(double percent) {
        //按比例调整工资
        super.setIncrease(3 * (getSalary() * percent));
    }
}
